﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Product_Search" Title="Untitled Page" Codebehind="Search.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../Include/JS/Lib/jquery-1.1.4.js"></script>

    <script src="../Include/JS/Lib/jquery.historyj.js"></script>

    <script src="../Include/JS/Products/Search.js"></script>
<script src="../Include/JS/qq.js"></script>
    <script type="text/javascript">
    var  $j = jQuery.noConflict();
function InitPage()
{
    var url=window.location.href;
    var len=url.length;
    var index=url.indexOf('=');
    var index2=url.indexOf('#');
    if(index2>0)
    {
        len=index2;
    }
    if(index>0)
    {
        document.getElementById("noKey").style.display="none";
        document.getElementById("Key").style.display="block";
        var key=url.substr(index+1,len-index-1);        
        document.getElementById("KeyWord").innerText="关键字:"+key;
        document.getElementById("div_h1").style.display="none";
        document.getElementById("div_h2").style.display="none";
    }
    else
    {
        document.getElementById("noKey").style.display="block";
        document.getElementById("Key").style.display="none"
        document.getElementById("div_h1").style.display="block";
        document.getElementById("div_h2").style.display="block";
    }
}
//enter快捷键

document.onkeydown = KeyAccess;
function KeyAccess(e)
{
    if (document.all)
    {
        var ieKey=event.keyCode;
        switch(ieKey)
        {
            case 13:
                H_InitPage();
                event.returnvalue=false;
                break;
            case 108:
                H_InitPage();
                event.returnvalue=false;
                break;
            default:
                break;
        }
    }
}
    </script>

    <div class="r_content">
        <div class="r_gouwu">
            <div class="r_gouwu_title">
                <h2>
                    商品搜索</h2>
            </div>
        </div>
        <div class="r_gjss">
        <div class="r_address1" id="noKey">
            <h4>
                请选择搜索条件</h4>
        </div>
        <div id="Key">
            <h4 id="KeyWord">
            </h4>
        </div>
        <div class="r_xinxi2" id="div_h1">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="350px" align="right" style="padding-right: 20px;">
                        关键字：</td>
                    <td>
                        <input class="inputbox1" style="width: 156px" id="txtKeyWord" type="text" size="15" name="txtOldPwd" /></td>
                </tr>
                <tr>
                    <td align="right" style="padding-right: 20px;">
                        查找方式：</td>
                    <td align="left">
                        <div style="float: left;">
                            <select id="SearchMethod" style="width: 160px" name="DropDownList1">
                                <option value="0">商品编号</option>
                                <option value="1">商品名称</option>                                
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="padding-right: 20px;">
                        价格范围：</td>
                    <td>
                        <div style="float: left;">
                            <select id="PriceRange" style="width: 160px" name="DropDownList2">
                                <option value="0">请选择价格</option>
                                <option value="20">0-20</option>
                                <option value="50">20-50</option>
                                <option value="100">50-100</option>
                                <option value="200">100-200</option>
                                <option value="300">200以上</option>
                            </select>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="padding-right: 20px;">
                        商品分类：</td>
                    <td>
                        <div style="float: left;">
                            <asp:DropDownList ID="DDL_Category" runat="server" AppendDataBoundItems="True">
                                <asp:ListItem>请选择分类</asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;</td>
                    <td>
                        <input id="IsNew" type="checkbox" name="IsNew" /><label for="IsNew">
                            新品</label>&nbsp;&nbsp;<input id="IsPromotion" type="checkbox" name="IsPromotion" /><label
                                for="IsPromotion">促销</label>&nbsp;&nbsp;<input id="IsCommend" type="checkbox" name="IsHot" /><label
                                    for="IsHot">推荐</label></td>
                </tr>
            </table>
        </div>
        <div class="ss" id="div_h2">
            <input id="Button1" type="button" value="搜索"  class="ssbutton" onclick="H_InitPage()"/>
            </div>
        <script>InitPage();</script>
        <div class="r_address1">
            <h4>
                搜索到的商品</h4>
        </div>
        <div class="clear">
        </div>
        <div id="ListArea">
            
        </div>
        <div class="clear">
        </div>
        <div class="r_top_title">
            <a href="#">
                <img src="../images/top.gif" /></a></div></div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
